﻿using System;
using AmazeUI.db;
using AmazeUI.Imodel;
using Newtonsoft.Json;

namespace AmazeUI.bll.GetModel
{
    public class PayOrder2 : PayOrder
    {
        public PayOrder2()
        {
            
        }

        public static PayOrder2 ToPayOrder(PayOrder model)
        {
            return WebCommon.StringCommand.Static.ParentToSub<PayOrder, PayOrder2>(model);
        }
        public PayOrder2(IPayOrder model)
            : base(model)
        {
        }

        [JsonProperty]
        public string TotalFeeStr
        {
            get { return Convert.ToDouble(base.TotalFee / 100).ToString("F"); }
            set { }
        }

        [JsonProperty]
        public GoodsPay Goods2
        {
            get { return WebCommon.StringCommand.Static.ParentToSub<Goods, GoodsPay>(this.Goods); }
            set { }
        }
    }
}